Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: Make Grow from seeds effect input requirements more clear #7326

Merged
merged 1 commit into from
Oct 31, 2023

Conversation

lassoan
Copy link
Contributor

@lassoan lassoan commented Oct 31, 2023

Grow from seeds effect requires at least 2 visible segments as input if no editable region is specified, and at least 1 visible segment if editable region is specified. When the requirement was not fulfilled then the user did not know what was wrong, because there was no visible notification on the GUI (only in the application log), see for example https://discourse.slicer.org/t/grow-from-seeds-does-not-work-if-painting-only-one-segment/32452/6

This commit adds display of the error in a popup window if there are not enough input segments. A notification on the status bar is added if segmentation is canceled due to removal of an input segment.

@lassoan lassoan self-assigned this Oct 31, 2023
@lassoan lassoan requested a review from pieper October 31, 2023 15:19
@lassoan lassoan added this to the Slicer 5.5 milestone Oct 31, 2023
@lassoan lassoan force-pushed the show-grow-from-seeds-input-req branch from 3adb9ce to e311566 Compare October 31, 2023 15:32
Grow from seeds effect requires at least 2 visible segments as input if no editable region is specified, and at least 1 visible segment if editable region is specified.
When the requirement was not fulfilled then the user did not know what was wrong, because there was no visible notification on the GUI (only in the application log),
see for example https://discourse.slicer.org/t/grow-from-seeds-does-not-work-if-painting-only-one-segment/32452/6

This commit adds display of the error in a popup window if there are not enough input segments.
A notification on the status bar is added if segmentation is canceled due to removal of an input segment.
@lassoan lassoan force-pushed the show-grow-from-seeds-input-req branch from e311566 to 5d05201 Compare October 31, 2023 15:34
Copy link
Member

@pieper pieper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - glad that user's feedback was helpful.

@lassoan
Copy link
Contributor Author

lassoan commented Oct 31, 2023

glad that user's feedback was helpful.

Yes. The user is always right (even when he makes a mistake).

@lassoan lassoan enabled auto-merge (rebase) October 31, 2023 16:07
@lassoan lassoan merged commit b050d39 into Slicer:main Oct 31, 2023
5 checks passed
@jcfr jcfr added the backport:5.x Identify pull request expected to be backported to the current 5.x release branch. label Nov 5, 2023
@jcfr jcfr removed the backport:5.x Identify pull request expected to be backported to the current 5.x release branch. label Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants